
import java.util.HashMap;
	
public class PeerSet{

	HashMap<String,Peer> PeerMap;	
	
	PeerSet(){
		PeerMap = new HashMap<String,Peer>();		
		}

	
	void PeerAdd(String Key, Peer p){
		if(!PeerMap.containsKey(Key))		
			PeerMap.put(Key, p);	
		}	
	
	void PeerDel(String Key){
		PeerMap.remove(Key);
		}			
	
	boolean PeerIsIn(Peer p, String Key){
		if (PeerMap.containsKey(Key))
			return true;
		else
			return false;

		}

}

